Skip to content

feat(builtins): add ls -C multi-column output#1079

Merged
chaliy merged 3 commits intomainfrom
fix/issue-1069-ls-column-flag
Apr 6, 2026
Merged

feat(builtins): add ls -C multi-column output#1079
chaliy merged 3 commits intomainfrom
fix/issue-1069-ls-column-flag

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 6, 2026

Summary

  • Adds -C flag to ls builtin for multi-column output (POSIX standard)
  • Column-major ordering matching GNU coreutils behavior
  • -F was already supported; -C was the only missing flag from the issue
  • Adds spec test for ls -C and ls -CF

Closes #1069

chaliy added 3 commits April 6, 2026 00:03
Implements the -C flag for the ls builtin to display entries in
column-major order (like real ls). Uses a fixed 80-column width since
VFS has no terminal. Precedence: -l > -1 > -C > default one-per-line.

Closes #1069
@chaliy chaliy merged commit 6ac3af0 into main Apr 6, 2026
27 checks passed
@chaliy chaliy deleted the fix/issue-1069-ls-column-flag branch April 6, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ls: missing support for -F and -C flags

1 participant